Specialized types used for system interaction, screen automation, and text recognition.
📂 Files & Folders (Path)
A path represents a location on your computer's file system.
Properties
| Property | Description |
|---|
IsFile | Returns true if the path points to an actual file. |
IsDirectory | Returns true if the path points to a folder. |
GetFileName | Returns the name of the file without its extension (e.g., "status_report"). |
GetFullFileName | Returns the name of the file with its extension (e.g., "status_report.pdf"). |
GetFileExtention | Returns just the file extension (e.g., ".pdf"). |
GetDirectory | Returns the path of the folder that contains this file. |
GetType | Returns "path". |
Operators
You can combine paths using the + operator: ${FolderPath} + "filename.txt".
🖱️ Coordinates (Point)
Represents a specific position on the screen using X and Y coordinates.
Properties
| Property | Description |
|---|
GetX | The horizontal position (pixels from the left edge). |
GetY | The vertical position (pixels from the top edge). |
GetType | Returns "point". |
Functions
| Function | Description |
|---|
Translate(x, y) | Shifts the point by the specified X and Y amounts. |
Multiply(x, y) | Multiplies the current X and Y values. |
🖥️ UI Elements (Element)
Represents an application or web element that Talos has detected.
Properties
| Property | Description |
|---|
GetName | The name or title of the element. |
GetId | The unique internal ID of the element. |
GetXPATH | The selector used by Talos to find this element. |
GetMethod | The detection technology (e.g., UIA, Web). |
GetType | Returns "element". |
Functions
| Function | Description |
|---|
WalkXPATH(path) | Returns a new XPATH based on walking relative to the current one. To "walk" on an XPath you can use '..' operator to navigate backwards |
📝 OCR Results (OCRResult)
Contains the results from a text recognition (OCR) scan on a document or screen.
Properties
| Property | Description |
|---|
GetType | Returns "ocrresult". |
Functions
| Function | Description |
|---|
Contains(text) | Returns true if the scanned text contains the specified word or phrase. |
IndexOf(text) | Returns the position of the specified text within the scan results. |
At(index) | Returns the specific text block found at the given position. |
GetTextAtPosition(x, y) | Returns the text located at specific screen coordinates. |